<?php
defined('BME_INSERTION') or die('Error code: '.BME_INVALID_INSERT_ERROR);


require_once(BME_ROOT."core/Web.php");
$_Main = new BME_Web($file,$_REQUEST["lang"]);


include (BME_ROOT."etc/vars.php");
$_Main->read_locale();
include (BME_ROOT."flags/bme.php");

if ( !$_Main->kill ):
	if ( $_Main->cacheable() ):
		$_Main->openCache();
	else:
		include ($_Main->proc_file);
		$_Main->out = $_Main->getFlags().$_Main->out;
		$_Main->saveCache();
	endif;
endif;

//include (BME_ROOT."gui/inc/header.php");
//include (BME_ROOT."gui/inc/footer.php");

?>
